package com.laoxu.test.sqlitedemo.mapper;

import com.laoxu.test.sqlitedemo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description:
 * @Author laoxu
 * @Date 2019/11/5 22:27
 **/
@Mapper
@Component
public interface UserDao {
    int insert(User user);
    User select(Integer id);
    List<User> selectAll();
    int delete(Integer id);
    int update(User user);

}
